import Vue from 'vue'
// 引入element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI)
import './assets/global.css'
import './assets/css/iconfont/iconfont.css'

import App from './App.vue'

import router from './router'
import store from './store'

//引入加密函数
import AES from "@/common/AES.js";
Vue.prototype.$AES = AES

// 引入axios封装
import serve from '@/service/api'
Vue.prototype.$serve = serve

// 引入工具函數
import mTool from '@/tool/index.js'
Vue.prototype.$mTool = mTool

// 引入高德api
import VueAMap from "vue-amap"
Vue.use(VueAMap)
VueAMap.initAMapApiLoader({
  key: '997c9f26475a20787e2b611122151d94',
  plugin: ['AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PlaceSearch', 'AMap.Geolocation', 'AMap.Geocoder'],
  v: '2.0',
  uiVersion: '1.1',
})

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')